import request from "@/utils/request";

// 查询列表
export const getMesUserInfo = (params) => {
  return request({
    url: "/mes/user/getMesUserInfo",
    method: "get",
    params,
  });
};

// 新增
export const addMesUserInfo = (data) => {
  return request({
    url: "/mes/user/addMesUserInfo",
    method: "post",
    data,
  });
};
// 修改
export const editMesUserInfo = (data) => {
  return request({
    url: "/mes/user/editMesUserInfo",
    method: "post",
    data,
  });
};

// 删除
export const delMesUserInfo = (data) => {
  return request({
    url: "/mes/user/delMesUserInfo",
    method: "post",
    data,
  });
};


// 下载模版
export const exportTemplate = (data) => {
  return request({
    url: "/mes/user/exportTemplate",
    method: "post",
    data,
  });
};
// 导出
export const exportMesUserInfo = (data) => {
  return request({
    url: "/mes/user/exportMesUserInfo",
    method: "post",
    data,
  });
};
// 头像上传
export const addOrEditMesFile = (data) => {
  return request({
    url: "/mes/file/addOrEditMesFile",
    method: "post",
    data,
  });
};
